package com.kedacom.ctsp.authz.security.bean;

import com.kedacom.ctsp.authz.Authorize;
import org.springframework.security.access.prepost.PreAuthorize;

/**
 * 测试用entity
 *
 * @author xuwei
 * @create 2017-11-30 14:17
 **/
@Authorize(resources = {"device"})
public class DeviceService {


    @Authorize(roles = "hasRole('ROLE_A')")
    @PreAuthorize("hasPermission(targetObject, 'device_list')")
    public void list() {

    }

}
